// pages/sign/list/list.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    TabCur: 0,
    tab: [{
        id: 0,
        name: '进行中'
      }, {
        id: 1,
        name: '未开始'
      }, {
        id: 2,
        name: '已结束'
      }
    ],
    //tab切换  
    currentTab: 0,

  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {

  },

  swichNav: function (e) {
    console.log("swichNav:")
    console.log(e)
    var that = this;
    if (this.data.currentTab === e.target.dataset.current) {
      return false;
    } else {
      that.setData({
        currentTab: e.target.dataset.current
      })
    }
  },
  bindChange: function (e) {
    var that = this;
    console.log(e.detail.current)
    var select = e.detail.current
    if (select == 0) {
    }
    if (select == 1) {
    }
    if (select == 2) {

    }
    that.setData({ currentTab: e.detail.current });
  },


})